<template>
  <page-header-wrapper>
    <a-card :bordered="false">
      <div class="gtitle" style="margin-bottom: 20px"><a-icon type="info-circle" style="color: #108ee9" theme="filled"/>产品信息</div>

      <div class="rowtxt">
        <a-row class='rowmb'>
          <a-col :span="2">产品名称:</a-col>
          <a-col :span="4" class="blue">源柏信统一服务器自动更新系统</a-col>
          <a-col :span="2">系统版本更新:</a-col>
          <a-col :span="4"><a-upload
            name="file"
            :multiple="true"
            action="https://www.mocky.io/v2/5cc8019d300000980a055e76"
            :headers="headers"
            @change="handleChange"
          >
            <a-button> <a-icon type="upload" /> 选择文件</a-button>
          </a-upload></a-col>
        </a-row>
        <a-row class='rowmb'>
          <a-col :span="2">系统版本:</a-col>
          <a-col :span="4" class="blue">V 1.0</a-col>
          <a-col :span="2"><a-button type="primary">提交更新</a-button></a-col>
        </a-row>
        <a-row class='rowmb'>
          <a-col :span="2">补丁库版本:</a-col>
          <a-col :span="4" class="blue">21.0.0.1001</a-col>
        </a-row>
      </div>

      <div class="gtitle" style="margin-bottom: 20px;margin-top: 20px"><a-icon type="info-circle" style="color: #108ee9" theme="filled"/>授权信息</div>
      <div class="rowtxt">
        <a-row class='rowmb'>
          <a-col :span="2">授权状态:</a-col>
          <a-col :span="4" class="blue">试用</a-col>
          <a-col :span="2">license更新:</a-col>
          <a-col :span="4"><a-upload
            name="file"
            :multiple="true"
            action="https://www.mocky.io/v2/5cc8019d300000980a055e76"
            :headers="headers"
            @change="handleChange"
          >
            <a-button> <a-icon type="upload" /> 选择文件</a-button>
          </a-upload></a-col>
        </a-row>
        <a-row class='rowmb'>
          <a-col :span="2">授权单位:</a-col>
          <a-col :span="4" class="blue">ybxin</a-col>
          <a-col :span="2"><a-button type="primary">提交更新</a-button></a-col>
        </a-row>
        <a-row class='rowmb'>
          <a-col :span="2">服务期限:</a-col>
          <a-col :span="4" class="blue">60天</a-col>
        </a-row>
        <a-row class='rowmb'>
          <a-col :span="2">设备激活凭证:</a-col>
          <a-col :span="4" class="blue">2AB796D8</a-col>
        </a-row>
        <a-row class='rowmb'>
          <a-col :span="2">最大授权数量:</a-col>
          <a-col :span="4" class="blue">100</a-col>
        </a-row>
        <a-row class='rowmb'>
          <a-col :span="2">服务起始时间:</a-col>
          <a-col :span="4" class="blue">2021.3.26</a-col>
        </a-row>
        <a-row class='rowmb'>
          <a-col :span="2">服务到期时间:</a-col>
          <a-col :span="4" class="blue">2021.3.26</a-col>
        </a-row>
      </div>

    </a-card>
  </page-header-wrapper>
</template>

<script>
  import {} from '../../utils/constant'
  export default {
    name: 'PatchUpdateManage',
    data() {
      return {

      }
    },
    mounted() {
      this.$info(
        {
          title:'提示',
          content:'测试Lisence未授权！',
          onOk:()=> {
            this.$router.push({ path: '/overview/overview' })
          },
        }
      )
    },
    methods:{


    }
  }
</script>

<style lang="less"  scoped>

  .gtitle{
    background-color: #e6f3fc;
    line-height: 40px;
    padding-left: 20px;
    color: #333;
    font-weight: bold;

    i{
      margin-right: 10px;
    }
  }
  .rowtxt,.ant-radio-group{
    line-height: 32px;

  }
  .ant-radio-group{
    width: 100%;
  }
  .rowspan{
    display: inline-block;
    width: 150px;
  }
  .showtxt{
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0 10px;
    height: 120px;
    overflow-y: auto;
  }
  .rowmb{
    margin-bottom: 10px;
  }
  .blue{
    color: #3366FF;
  }
  .iplist{
    border: 1px solid #ddd;
    padding: 5px;
    min-height: 100px;
    line-height: 30px;
    div:hover{
      background-color: #efefef;
    }
    .icon{
      color: red;
      cursor: pointer;
      line-height: 30px;
      float: right;
      margin-right: 20px;
    }
  }
</style>
